import request from "@/utils/request";

// 平台规则等
export function getTools(params) {
  return request({
    url: "/tools/get_config",
    method: "get",
    params
  });
}

export function saveTools(data) {
  return request({
    url: "/tools/save_config",
    method: "post",
    data
  });
}
// 首页 数据概览
export function getStatistics(data) {
  return request({
    url: "/tools/statistics",
    method: "post",
    data
  });
}
// 首页 发帖统计
export function getPostStatistics(data) {
  return request({
    url: "/tools/post_statistics",
    method: "post",
    data
  });
}

// 首页 领养累计统计
export function getAdoptApplyStatistics(data) {
  return request({
    url: "/tools/adopt_apply_statistics",
    method: "post",
    data
  });
}
